#ifndef OPENSOURCEHARDWAREHUB_H
#define OPENSOURCEHARDWAREHUB_H

#include "wiki.h"

class OpenSourceHardWareHub : public Wiki
{
public:
    enum Type {
        Hub,
        Article,
    };
    OpenSourceHardWareHub(Type type = Hub);

    // Wiki interface
public:
    virtual QString name() override;
    virtual QString prefix() override;

    WIKI_AUTOLOAD
    WIKI_USE_DELAY(1500)
    SearchMode searchMode() override;
    virtual QList<QListWidgetItem*> searching_item(const QString &text) override;

    WIKI_USE_URL
    virtual QString content(const QString &text) override;
    virtual QString content_item(const QListWidgetItem *item) override;


    bool forward_to_content() override;

private:
    Type m_type;
};

#endif // OPENSOURCEHARDWAREHUB_H
